package com.gzbsoft.sc.modules.sys.entity;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.DbDefault;
import io.ebean.annotation.DocStore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
@DocStore
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "jx_user_detail")
@DbComment("用户详情表")
public class JxUserDetail extends BaseEntity {
    @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.REFRESH)
    @JoinColumn(name = "jx_user_id")
    private JxUser user;
    @DbComment("真实姓名")
    private String realName;
    @DbComment("身份证国徽面")
    private String idCardFrontImg;
    @DbComment("身份证头像面")
    private String idCardBackImg;
    @DbComment("身份证号")
    private String idCard;
    @DbComment("实名认证审核次数")
    private String realCheckCount;
    @DbComment("审核状态,1: 审核通过, 0: 未审核, 2: 审核未通过")
    @DbDefault("0")
    private Integer status;
}
